<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSurchangesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('surchanges', function (Blueprint $table) {
            $table->id();
            $table->string('title')->default('')->comment('类别');
            $table->string('img')->default('')->comment('图片');
            $table->decimal('price',10,2)->default(0.00)->comment('价格');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('surchanges');
    }
}
